//
//  CJPictorialMainModel.m
//  KaiJing
//
//  Created by lanou on 16/1/11.
//  Copyright © 2016年 HuangZuCui. All rights reserved.
//

#import "CJPictorialMainModel.h"

@implementation CJPictorialMainModel


//保护方法
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}


//给图片数组赋值
- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    
    if ([key isEqualToString:@"imagelist"]) {
        self.imagelist = [NSMutableArray array];
        for (NSDictionary *dic in value) {
             CJPictorialMainImagelistModel *model = [[CJPictorialMainImagelistModel alloc] init];
            [model setValuesForKeysWithDictionary:dic];
            [self.imagelist addObject:model];
            
        }
    }
    
    
}






@end
